const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    entry: {
        index: ['./src/scss/index.scss', './src/js/index.js', './src/fonts/iconfont.css', ],
        list: ['./src/scss/list.scss', './src/js/index.js', './src/fonts/iconfont.css', ],
        classify: ['./src/scss/classify.scss', './src/js/index.js', './src/fonts/iconfont.css', ],
        find: ['./src/scss/find.scss', './src/js/index.js', './src/fonts/iconfont.css', ],
        use: ['./src/scss/use.scss', './src/js/index.js', './src/fonts/iconfont.css', ],


    },
    plugins: [

        new HtmlWebpackPlugin({
            template: "./src/html/index.html",
            filename: "index.html",
            chunks: ["index"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/list.html",
            filename: "list.html",
            chunks: ["list"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/find.html",
            filename: "find.html",
            chunks: ["find"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/use.html",
            filename: "use.html",
            chunks: ["use"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/classify.html",
            filename: "classify.html",
            chunks: ["classify"]
        }),

    ]
}